package org.fms.web.filter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import java.io.IOException;

/**
 * PACKAGE     : org.fms.web.filter
 * CREATE DATE : 2018-03-07
 * AUTHOR      : xiaolu.fan
 * 文件描述     :过滤器
 */
public class IndexFilter implements Filter {


    private Logger logger = LoggerFactory.getLogger(IndexFilter.class);

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        logger.info("init filter....");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

    }

    @Override
    public void destroy() {
        logger.info("destroy filter...");

    }
}